@echo off
for /R ".\" %%f in (*.sdx) do (
    sdedit-4.01.exe %%~nf.sdx -o %%~nf.png
)